<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
   <script>

           var match = 'asdfsdfdd-asdf-\.vue'.match(/([^/\\]+)\.vue$/);
           console.log(match)

   </script>
</body>
</html>